package control;

import onjava.Range;

public class ForInInt {
	public static void main(String[] args) {
		for (int i : Range.range(10)) {
			System.out.print(i + " ");
		}
		System.out.println();
		for (int i : Range.range(5, 10)) {
			System.out.print(i + " ");
		}
		System.out.println();
		for (int i : Range.range(5, 20, 3)) {
			System.out.print(i + " ");
		}
		System.out.println();
		for (int i : Range.range(20, 5, -3)) {
			System.out.print(i + " ");
		}
		System.out.println();
	}
}
